<?php
// test.php

require_once('bootstrap.php');

echo Doctrine::getPath();

//$conn->export->createTable('test', array('name' => array('type' => 'string')));
//$conn->execute('INSERT INTO test (name) VALUES (?)', array('jwage'));

//$stmt = $conn->prepare('SELECT * FROM test');
//$stmt->execute();
//$results = $stmt->fetchAll();
//print_r($results);


//Doctrine::generateModelsFromDb('models', array('doctrine'), array('generateTableClasses' => true));

//Doctrine::generateYamlFromModels('schemaagain.yml', 'models');

$custID = $_REQUEST['custID'];

	$q = Doctrine_Query::create();
	$q->from('Customers');
	$q->where('Customers.customernumber = ?');
	
	$instance = $q->fetchOne(array(103));
	print $instance->customerName;

?>